import request from '@/utils/request'

// 查询故障条件列表
export function listConditions(query) {
  return request({
    url: '/system/conditions/list',
    method: 'get',
    params: query
  })
}

// 查询故障条件详细
export function getConditions(conId) {
  return request({
    url: '/system/conditions/' + conId,
    method: 'get'
  })
}

// 新增故障条件
export function addConditions(data) {
  return request({
    url: '/system/conditions',
    method: 'post',
    data: data
  })
}

// 修改故障条件
export function updateConditions(data) {
  return request({
    url: '/system/conditions',
    method: 'put',
    data: data
  })
}

// 删除故障条件
export function delConditions(conId) {
  return request({
    url: '/system/conditions/' + conId,
    method: 'delete'
  })
}
